package com.zhijian.warehouse.manage.entity.po;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 部门组织
 *
 * @author Auto Generator
 * @date 2022-01-01 15:41:00
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Api(tags = "部门组织")
public class OfficeGroup {

    /**
     * id
     */
    @ApiModelProperty(value = "id", hidden = true)
    private Long id;

    /**
     * 名称
     */
    @ApiModelProperty("名称")
    @NotNull(message = "名称不能为空")
    private String name;

    /**
     * 父id，顶级此字段为0
     */
    @ApiModelProperty("父id，顶级此字段为0")
    @NotNull(message = "父组织id不能为空")
    private Long parentId;

    /**
     * 等级，顶级此字段为1
     */
    @ApiModelProperty("等级，顶级此字段为1")
    private Integer level;

    /**
     * 部门编码
     */
    @ApiModelProperty("部门编码")
    private String note;

    /**
     * create_time
     */
    @ApiModelProperty(value = "create_time", hidden = true)
    private Date createTime;

    /**
     * update_time
     */
    @ApiModelProperty(value = "update_time", hidden = true)
    private Date updateTime;
}